package com.hr.dept.service.Impl;

import java.util.List;

import com.hr.dept.dao.Impl.DeptDaoImpl;
import com.hr.dept.domain.Dept;
import com.hr.dept.service.DeptService;
import com.hr.utils.CommonUtils;
import com.hr.utils.PageBean;

/**
 * 部门业务层实现层
 * @author 杨谦
 * @date 2015-11-2
 *
 */
public class DeptServiceImpl implements DeptService {
	private DeptDaoImpl deptDaoImpl = new DeptDaoImpl();
	
	@Override
	public PageBean<Dept> queryAll_Page(int PageCurrent, int PageSize) {
		// TODO Auto-generated method stub
		return deptDaoImpl.queryAll_Page(PageCurrent, PageSize);
	}
	
	@Override
	public void addDept(Dept dept) {
		// TODO Auto-generated method stub
		deptDaoImpl.addDept(dept);
	}

	@Override
	public void updateDept(Dept dept) {
		// TODO Auto-generated method stub
		deptDaoImpl.updateDept(dept);
	}

	@Override
	public void deleteDept(String id) {
		// TODO Auto-generated method stub
		deptDaoImpl.deleteDeptByID(id);
	}
	
	@Override
	public Dept findDeptByID(String dept_ID) {
		// TODO Auto-generated method stub
		return deptDaoImpl.findByDeptID(dept_ID);
	}

	@Override
	public List<Dept> queryALL() {
		// TODO Auto-generated method stub
		return deptDaoImpl.queryAllDept();
	}
	
	
/*	@Test
	public void test(){
		System.out.println(queryAll_Page(1, 10).getBeanList());
	}*/
}
